namespace GameCore
{
    public class AssetPackageInfo
    {
        public string Name { get; set; }
        public string MD5 { get; set; }
        public long FileSize { get; set; }
        public bool Needing { get; set; }
        public bool EncryptJson { get; set; }
        public bool CompressionJson { get; set; }

        [Newtonsoft_X.Json.JsonIgnore] public string Path => $"{Global.Config.AssetBundlePath}/{Name}.json";

        public AssetPackageInfo() { }

        public AssetPackageInfo(string name, bool needing, string md5, long fileSize)
        {
            Name = name;
            MD5 = md5;
            FileSize = fileSize;
            Needing = needing;
        }
    }
}